home *** CD-ROM | disk | FTP | other *** search
-
-
-
- SSSSLLLLAAAARRRRUUUUVVVV((((3333SSSS)))) SSSSLLLLAAAARRRRUUUUVVVV((((3333SSSS))))
-
-
-
- NNNNAAAAMMMMEEEE
- SLARUV - return a vector of n random real numbers from a uniform (0,1)
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- SUBROUTINE SLARUV( ISEED, N, X )
-
- INTEGER N
-
- INTEGER ISEED( 4 )
-
- REAL X( N )
-
- IIIIMMMMPPPPLLLLEEEEMMMMEEEENNNNTTTTAAAATTTTIIIIOOOONNNN
- These routines are part of the SCSL Scientific Library and can be loaded
- using either the -lscs or the -lscs_mp option. The -lscs_mp option
- directs the linker to use the multi-processor version of the library.
-
- When linking to SCSL with -lscs or -lscs_mp, the default integer size is
- 4 bytes (32 bits). Another version of SCSL is available in which integers
- are 8 bytes (64 bits). This version allows the user access to larger
- memory sizes and helps when porting legacy Cray codes. It can be loaded
- by using the -lscs_i8 option or the -lscs_i8_mp option. A program may use
- only one of the two versions; 4-byte integer and 8-byte integer library
- calls cannot be mixed.
-
- PPPPUUUURRRRPPPPOOOOSSSSEEEE
- SLARUV returns a vector of n random real numbers from a uniform (0,1)
- distribution (n <= 128).
-
- This is an auxiliary routine called by SLARNV and CLARNV.
-
-
- AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
- ISEED (input/output) INTEGER array, dimension (4)
- On entry, the seed of the random number generator; the array
- elements must be between 0 and 4095, and ISEED(4) must be odd.
- On exit, the seed is updated.
-
- N (input) INTEGER
- The number of random numbers to be generated. N <= 128.
-
- X (output) REAL array, dimension (N)
- The generated random numbers.
-
- FFFFUUUURRRRTTTTHHHHEEEERRRR DDDDEEEETTTTAAAAIIIILLLLSSSS
- This routine uses a multiplicative congruential method with modulus 2**48
- and multiplier 33952834046453 (see G.S.Fishman,
- 2**b: an exhaustive analysis for b = 32 and a partial analysis for b =
- 48', Math. Comp. 189, pp 331-344, 1990).
-
- 48-bit integers are stored in 4 integer array elements with 12 bits per
- element. Hence the routine is portable across machines with integers of
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- SSSSLLLLAAAARRRRUUUUVVVV((((3333SSSS)))) SSSSLLLLAAAARRRRUUUUVVVV((((3333SSSS))))
-
-
-
- 32 bits or more.
-
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- INTRO_LAPACK(3S), INTRO_SCSL(3S)
-
- This man page is available only online.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-